package co.com.timer;

import java.io.IOException;
import java.math.BigDecimal;

import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/Timer")
public class Timer extends HttpServlet {

	private static final long serialVersionUID = 1L;

	@EJB
	CreditCardTransactionProcessingLocalBusiness myBean;

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
    	myBean.add(new CreditCardTransaction("123", new BigDecimal(1000)));
    }
}